home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Die Speccy' 97
/
Die Speccy' 97.iso
/
amiga_system
/
the_aminet
/
comm
/
bbs
/
pmbs1251_demo.lha
/
prometheus
/
developer
/
DimBeispiel.c
< prev
next >
Wrap
Text File
|
1995-09-19
|
681b
|
29 lines
Beispiel zur Behandlung von PMBS-Dimfeldern in C
(die Brettliste wird z.B. in DimFeldern verwaltet)
#include <proto/exec.h>
struct DimFeld
{
long DimAnzahl;
void *DimData[0]; // erzeugt ANSI-Portablilitätswarnung !!
};
struct DimFeld *GetDimFeld(long offset)
{
struct MsgPort *PServer;
struct DimFeld *DimFeld;
PServer=FindPort("rexx_PXServer");
if(PServer)
{
DimFeld=(struct DimFeld *) (* ( (ULONG *) ( * ( (ULONG *)
((UBYTE *) PServer + offset ))))) ;
return DimFeld;
}
else
return (struct DimFeld *)0L;
}